import request from '@/utils/request'//引入ajax
const api_name = '/admin/manage'
export const findManage = (queryDto) => {
    return request({
        url: `${api_name}/findManage`,
        method: 'get',
        params:queryDto
    })
}

export const findSpecies = () => {
    return request({
        url: `${api_name}/findSpecies`,
        method: 'get'
    })
}
//添加信息
export const addManages = (manage) => {
    return request({
        url: `${api_name}/saveManage`,
        method: 'post',
        data:manage
    })
}
//根据id查询信息
export const findManageById = (id) => {
    return request({
        url: `${api_name}/findManageById/${id}`,
        method: 'get'
    })
}
//修改信息
export const updateManage = (manage) => {
    return request({
        url: `${api_name}/updateManage`,
        method: 'put',
        data:manage
    })
}
//删除
export const deleteManage = (id) => {
    return request({
        url: `${api_name}/deleteManage/${id}`,
        method: 'delete'
    })
}